package com.example.lotterybackend.dao.dataobject;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.lotterybackend.dao.handler.UserPhoneTypeHandler;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.apache.ibatis.type.JdbcType;

@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@TableName("user")
public class UserDO extends BaseDO {
    private String userName; // 用户名称
    private String email; // 用户邮箱
    @TableField(typeHandler = UserPhoneTypeHandler.class)
    private PhoneNumberEncrypt phoneNumber; // 手机号码
    private String password; // 密码
    private String identity; // 用户身份
}
